<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('admin/categories/create'));
$form->setAttribute('method', 'post');
$form->setAttribute('class' , 'form-horizontal');
?>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-blue">
            <div class="panel-heading">
                <?php echo $this->translate('Create categories');?>
            </div>
            <div class="panel-body pan">

            </div>
            <?php if(count($flashMessages)): ?>
                <?php foreach ($flashMessages as $msg) : ?>
                    <div class="alert alert-block alert-success">
                        <a class="close" data-dismiss="alert" href="#">×</a>
                        <p><?php echo $this->translate($msg) ?></p>
                    </div>
                <?php endforeach; ?>
            <?php endif; ?>

            <?php echo $this->form()->openTag($form); ?>
            <div class="form-body pal">
                <?php echo $this->formCollection($form->get('create_category')); ?>
            <?php if ($this->redirect): ?>
            <input type="hidden" name="redirect" value="<?php echo $this->escapeHtml($this->redirect) ?>" />
            <?php endif ?>
            </div>
            <div class="form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <?php echo $this->formButton($form->get('submit')); ?>
                </div>
            </div>

            <?php echo $this->form()->closeTag(); ?>
        </div>
    </div>
</div>